<?php

namespace app\shop\model\product;

use think\facade\Cache;
use \app\common\model\product\RechargeDictType as RechargeDictTypeModel;

/**
 * 充值模板模型
 */
class RechargeDictType extends RechargeDictTypeModel
{
    /**
     * 添加新记录
     */
    public function add($data)
    {
        $data['app_id'] = self::$app_id;
        return $this->save($data);
    }

    /**
     * 编辑记录
     */
    public function edit($data)
    {
        return $this->save($data) !== false;
    }

    /**
     * 删除商品分类
     */
    public function remove()
    {
        return $this->delete();
    }

}
